<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
 <html>
<head>
	<meta charset="UTF-8">
	<title>Add User Page</title>
</head>
<body>
	<form action="addUser" method="post">
		<label for="username">用戶:</label>
		<input type="text" id="username" name="username" required="required">
		<br>
		<label for="userId">ID:</label>
		<input type="text" id="userId" name="userId" pattern="^[a-zA-Z][a-zA-Z0-9_-]{7,15}$" title="ID必须以字母开头，长度在8-16个字符之间且只能包含字母、数字、下划线和减号" required>
		<br>
		<label for="permission">權限:</label>
		<select id="permission" name="permission">
			<option value="normal">管理員</option>			
			<option value="seller">商家</option>
			<option value="admin">普通會員</option>
		</select>
		<br>
		<input type="submit" value="添加">
		<input type="reset" value="重置">
	</form>
</body>
</html>
